export default function(props) {
	let pagecode = props.getSearchParam('p') ? props.getSearchParam('p') : props.getUrlParam('p');
	let appcode = props.getSearchParam('c') ? props.getSearchParam('c') : props.getUrlParam('c');
	props.createUIDom(
		{
			pagecode: pagecode,
			appcode : appcode
		},
		function(data){
			if(data){
				if (data.template) {
					let template = data.template;
					props.meta.setMeta(template);
				}
				if(data.button){
					let button = data.button;
					props.button.setButtons(button);
				}
			}
		},
		false
 	);
}



